\hypertarget{convection4_8cpp}{
\subsection{Examples/05ConvDiffForced/convection4.cpp File Reference}
\label{convection4_8cpp}\index{Examples/05ConvDiffForced/convection4.cpp@{Examples/05ConvDiffForced/convection4.cpp}}
}


Forced Convection-\/Diffusion in NonUniform 2D meshes.  




\subsubsection{Detailed Description}
\begin{DoxyParagraph}{Description}
This code solves the next equation: \[ \frac{\partial T}{\partial t} + u_j \frac{\partial T}{\partial x_j} = \nabla^2 T \]. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
This equation is solved in a unit square $ x, y \in [0,1] $. The velocity is prescribed and has the form: \[ u = -A \cos(\pi y) \sin(\pi \lambda x / L_x ); \] \[ v = \frac{A \lambda}{L_x} \sin(\pi y) \cos(\pi \lambda x / L_x); \] The boundary conditions are as shown in the next figure:
\end{DoxyParagraph}
 
\begin{DoxyImage}
\includegraphics[width=10cm]{convection}
\caption{Unit square in 2D}
\end{DoxyImage}


\begin{DoxyParagraph}{Compiling and running}
Modify the variables BASE and BLITZ in the file {\ttfamily tuna-\/cfd-\/rules.in} according to your installation and then type the next commands: 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
\begin{DoxyVerb}
   % make
   % ./convection4 \end{DoxyVerb}

\end{DoxyParagraph}
\begin{DoxyAuthor}{Author}
Luis M. de la Cruz \mbox{[} Sat May 23 12:06:36 CDT 2009 \mbox{]} 
\end{DoxyAuthor}


Definition in file \hyperlink{convection4_8cpp_source}{convection4.cpp}.

